﻿using System.Text;

namespace System
{
    public static class StringHelper
    {
        public static int GetChineseLength(this String input)
        {
            if (String.IsNullOrEmpty(input))
            {
                return 0;
            }
            return Encoding.UTF8.GetBytes(input).Length;
        }
    }
}
